package cn.edu.sgu.www.mhxysy.mapper.children;

import cn.edu.sgu.www.mhxysy.entity.children.ChildrenSkill;
import cn.edu.sgu.www.mhxysy.entity.children.ChildrenSkillCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Repository
public interface ChildrenSkillMapper extends BaseMapper<ChildrenSkill> {

    /**
     * 通过子女ID查询子女技能列表
     * @param childrenId 子女ID
     * @return List<ChildrenSkillCategory>
     */
    List<ChildrenSkillCategory> selectByChildrenId(
            @Param("type") Integer type,
            @Param("childrenId") String childrenId
    );
}